 #include <sys/types.h>
 #include <unistd.h>    
 #include <sys/stat.h>
 #include <fcntl.h>



#include<stdio.h>

#define BUFSIZE 16

int main(int argc, char * argv[])
{
	if(argc < 2){
		return 1;
	}

	char buf[BUFSIZE] = {};
	int fd = open(argv[1], O_RDONLY);
	if(fd == -1){
		perror("open():");
		return 1;
	}
	printf("当前位置：%ld\n", lseek(fd, 30, SEEK_CUR));
	printf("当前位置：%ld\n", lseek(fd, 30, SEEK_CUR));

	read(fd, buf, BUFSIZE - 1);

	puts(buf);

	close(fd);
	return 0;
}
